﻿@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;
@{
    Subjects subject = (Subjects)PageData["subject"];
    List<Categories> list = new CategoriesBLL().GetCategoriesSubject(subject.Categories);
}
<div>
    <div class="home_subject_title">@subject.SubjectName</div>
    <div class="home_subject_smalltitle">
        @foreach (Categories menucate in list)
        {
            <a href="/@menucate.ShowPath/index.shtml" title="@menucate.CategorieName">@menucate.CategorieName</a>
        }

    </div>
    <div class="home_subject_content">
        @foreach (ArticelsViews art in ArticlesBLL.GetSubject(subject.SubjectId, Config.Theme(Request.UserAgent)))
        {
            <div class="subject_content @{<text>v</text>@art.ID;} img-thumbnail">
                <div class="subject_content_img ">
                    <a href="/@art.CagegorieShowPath/@(Utils.GetPagePath(art.ShowPath, art.ID)).shtml">
                        <img src="@art.IconUrl" class="img-rounded" />
                    </a>
                </div>
                <div class="subject_text">
                    <a href="/@art.CagegorieShowPath/@(Utils.GetPagePath(art.ShowPath, art.ID)).shtml">
                        <div class="subject_text_title">@(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 18))</div>
                        <div class="subject_text_content">@(Utils.ClearPart(UcAsp.Net.Comm.Utils.RemoveHtml(art.ArticleContent), 80))</div>
                     </a>
                </div>
            </div>
        }
        <div style="clear:both;"></div>
    </div>
</div>